package com.ruitu.mall_98_2.mvp.contract;

import com.beanu.arad.base.BaseModel;
import com.beanu.arad.base.BasePresenter;
import com.beanu.arad.base.BaseView;
import com.ruitu.router_module.bean.api.BaseResult;

import java.io.File;
import java.util.List;

import okhttp3.MultipartBody;
import rx.Observable;

public interface CommentContract {
    interface Model extends BaseModel {
        Observable<BaseResult> saveCommentScore(MultipartBody multipartBody);

    }

    interface View extends BaseView {
        void setCommentSuc();
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void saveCommentScore(MultipartBody multipartBody);

        public abstract MultipartBody saveCommentScore(String odId,
                                                       String accountId,
                                                       String goodsComment,
                                                       String companyComment,
                                                       String logisticsComment,
                                                       String content,
                                                       String goodsId,
                                                       String goodsModelId,
                                                       List<File> commentPictures);
    }
}
